<%-- 
    Document   : ResultSearchEditUser
    Created on : 06/04/2014, 11:55:58
    Author     : Adriano
--%>

<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="h" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
    
<jsp:useBean  type="model.User"  id="EditUser" scope="session"/>  
<form  method="post" action="UpDateUser.do" class="allForm userEdit"  id="userEditForm">
    
    <fieldset class="form container user">
            <div class="title">
                <span class="h1">Editar Cadastro de Usuário</span>
            </div>
            
             
        <input type="hidden"  value="${EditUser.id}" name="txtId"  />
        <input type="hidden"  value="${EditUser.password}" name="txtPassword"/>
           
            <div class="form-field user-name ">
                <label>Nome:</label> 
                <input type="text" class="form-control new-user"  value="${EditUser.name}" name="txtName"   required/>
            </div>
            <div class="form-field user-email">
                <label>Login:</label> 
                <input type="text" class="form-control new-login" name="txtEmail"   
                       pattern="^([\w\-\.]+)@((\[([0-9]{1,3}\.){3}[0-9]{1,3}\])|(([\w\-]+\.)+)([a-zA-Z]{2,4}))$"  title="Formato incorreto"   value="${EditUser.email}"  required/>
            </div>
            <div class="form-field user-profile">
                <label for="profile">Perfil:</label> 
                <select name="lstProfile" class="form-control profile ">
                    <option value="${EditUser.lstprofile}">${EditUser.lstprofile}</option>
                </select>
            </div>

            <div class="checkStatus">
                <label for="status">Status</label> 
                <select name="lstStatus" class="form-control profile ">
                    <option value="${EditUser.lstStatus}">${EditUser.lstStatus}</option>

                </select>
            </div>
                        <div class="form-actions">
                            <input type="button" id="btnenviar" class="button-black" value="Atualizar" onclick="doAjaxPostUpdateUser();return false;">
        </div>
        </fieldset>
    </form>
